#include "UdpServer.hpp"
#include <memory>
#include <cstdio>
#include <vector>
using namespace std;

void Usage(string proc)
{
     cout<<"\n\rUsage:"<<proc<<" serverip serverport\n"<<endl;
}

int main(int argc,char* argv[])
{
    if(argc!=2) 
    {
        Usage(argv[0]);
        exit(0);
    }
    uint16_t port=stoi(argv[1]);
    unique_ptr<UdpSever> svr(new UdpSever);
    svr->Init();
    svr->Run();
    return 0;
}